package liumengbaio.lolzhangyoubao.Activity.Activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;

import liumengbaio.lolzhangyoubao.R;

/**
 * 娱乐界面
 * Created by lanouhn on 16/9/3.
 */
public class MoreRecreationActivity extends AppCompatActivity {

    private ImageView back;
    private RelativeLayout guess, divine, card;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.more_recreation);
        initView();
        initEvent();
    }

    private void initView() {
        back = (ImageView) findViewById(R.id.more_recreation_back);
        guess = (RelativeLayout) findViewById(R.id.more_recreation_guess);
        divine = (RelativeLayout) findViewById(R.id.more_recreation_divine);
        card = (RelativeLayout) findViewById(R.id.more_recreation_card);
    }

    private void initEvent() {

        guess.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(MoreRecreationActivity.this, MoreGuessActivity.class);
                startActivity(intent);
            }
        });
        divine.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(MoreRecreationActivity.this, MoreDivineActivity.class);
                startActivity(intent);
            }
        });
        card.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(MoreRecreationActivity.this, MoreCardActivity.class);
                startActivity(intent);
            }
        });


        back.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
    }
}
